<template>
  <footer>
    <router-link to="/home/index">首页</router-link>
    <router-link to="/home/classify">分类</router-link>
    <router-link to="/home/car">购物车</router-link>
    <router-link to="/home/my">我的</router-link>
  </footer>
</template>


<style scoped lang="scss">
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 46px;
  background: tomato;
  left: 0;
  a {
    color: #000;
    text-decoration: none;
  }
}

.router-link-exact-active, .router-link-active {
  color: #fff;
}
</style>